import Vue from 'vue'
import VueRouter from 'vue-router'//引用路由
import UserIndex from '../components/UsersIndex.vue'
import edit from '../components/edit.vue'
import add from '../components/add.vue'
Vue.use(VueRouter)// vue使用路由
export default new VueRouter({
    routes: [
        {
            path: '/user/index',
            name: 'ui',
            component: UserIndex
        },
        {
            path: '/user/edit',
            name: 'edit',
            component: edit
        },
        {
            path: '/user/add',
            name: 'add',
            component:add
        }
    ]
})



